package com.maoyanjava.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.maoyanjava.mapper.UserMapper;
import com.maoyanjava.pojo.User;
import com.maoyanjava.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserserviceImpl implements UserService {
    @Autowired
    private UserMapper um;


    @Override
    public User gatOne(String username, String pwd) {
        QueryWrapper qw = new QueryWrapper();
        qw.eq("username",username);
        qw.eq("pwd",pwd);
        return um.selectOne(qw);
    }
}
